<%@ page contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<div class="alert alert-yellow">
${loginUser.localName}的已办事项
</div>
<table class="table table-striped table-bordered table-condensed table-hover ">
  <thead>
  <tr>
  <th>流程</th>
  <th>事务名称</th>
  <th>业务</th>  
  <th>开始日期[发起人]</th>
  <th>办理日期[办理人]</th>
  <th>状态</th>
  <th>控制</th>
  </tr>
  </thead>
  <tbody>
    <c:forEach items="${pager.rows}" var="row">
    <tr>
       <td>${row.workflowName}
         <span class="label label-inverse">${row.workflowId }</span>
       </td> 
       <td>
         ${row.title}
       </td>      
       <td>
          <span  class="label label-info">
          ${row.actionName }
          </span>
       </td>      
       <td>${row.startDate}-[
          <span class="label label-success">
            ${row.starter}
          </span>
          ]</td>
       <td>${row.sendDate}-[
         <span class="label label-important">
       		${row.sender }
         </span>
       ]</td>
       <td>
          <span class="label ${row.status=='Finished'?'label-warning':'label-info'}">
               ${row.status=='Finished'?'完成':'在办'}
          </span> </td>
       <td> <button type="button" onclick="doWatch('${row.workflowId}')"   class="btn btn-inverse">
            <i class="icon-white icon-eye-open"></i>
         </button>
         </td>
    </tr>
    
    
    </c:forEach>
    
  
  </tbody>
    <tfoot>
      <tr>
        <td colspan="7">
            ${pager.pagination}
        </td>
      </tr>
    </tfoot>
    
  
  </table>
  <script type="text/javascript" src="${base }scripts/apps/workflow/util.js"></script>